package model

import "gorm.io/gorm"

type News struct {
	gorm.Model
	Title   string `gorm:"type:varchar(50)"`
	Content string `gorm:"type:varchar(255)"`
	Img     string `gorm:"type:varchar(255)"`
	LikeNum int    `gorm:"type:int;default:0"`
}
type User struct {
	gorm.Model
	Tel      string `gorm:"type:varchar(11)"`
	Password string `gorm:"type:varchar(255)"`
}

type Likes struct {
	gorm.Model
	UserId int `gorm:"type:int"`
	NewsId int `gorm:"type:int"`
}
